package cn.kgc.springcloud.controller;

import cn.kgc.springcloud.service.StorageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2025/1/16
 * @description
 */
@RestController
@RequestMapping("storage")
public class StorageController {

    @Resource
    private StorageService storageService;

    @GetMapping("deduct")
    public void deduct(String commodityCode, Integer count){

       storageService.deduct(commodityCode,count);
    }
}
